import request from '@/utils/request'

export const loginAPI = data => request.post('/sys/login', data)

/**
 *
 * @returns 获取用户信息
 */
export function getUserInfoAPI () {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

// 获取user图片信息
/**
 *
 * @returns 获取用户信息
 */
//
export const getUserImg = id => request.get(`/employees/${id}/personalInfo`)
